/**
 * 
 */
package com.googlecode.pcapj;


/**
 * Represents a UDP Packet.
 */
public interface UDPPacket extends Packet{
	/**
	 * Gets the source port.
	 * @return the source port.
	 */
	int getSource();
	/**
	 * Gets the destination port.
	 * @return
	 */
	int getDestination();
	/**
	 * Gets the length in bytes of the UDP header and UDP data.
	 * @return the length.
	 */
	int getLength();
	/**
	 * Gets the Checksum field.
	 * @return the Checksum field.
	 */
	short getChecksum();
	/**
	 * Gets the data field of the UDP packet.
	 * @return the data field of the UDP packet.
	 */
	public byte[] getData();
}
